The traditional way to process an element on a queue in SQL is to fetch the element in a first step. 在SQL中,处理队列上一个元素的传统方法是在第一步取这个元素。
Instead of adding and removing elements from the queue immediately, the thread performing the operation blocks until space or an element is available. 不是立即从队列中添加或者删除元素,线程执行操作阻塞,直到有空间或者元素可用。
While the queue is unbound in size, enabling adds to return immediately, one cannot take an element from the queue until the delay time has expired. 因为队列的大小没有界限,使得添加可以立即返回,但是在延迟时间过去之前,不能从队列中取出元素。
To ensure the requirements of the hard real-time tasks, these tasks were organized in a run queue pointed by run_-queue [ 0], an element of a point array, and FIFO schedule strategy was used for them. 为严格保证硬实时任务的实时性,将其单独放在一个队列中,由指针数组的元素run-queue[0]指向,采用FIFO调度算法;
The soft real-time tasks and non real-time tasks were put into the other run queue pointed by run_-queue [ 1], the other element of the point array, and RR schedule strategy was used for them. 软实时任务和非实时任务放在一个队列中,由指针数组的元素run-queue[1]指向,采用RR调度算法,通过抢占方式保证软实时任务优先于非实时任务。